package Pet.Management.repository;

import Pet.Management.domain.entity.Payment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface PaymentRepository extends JpaRepository<Payment, Long> {
    Page<Payment> findByUserId(Long userId, Pageable pageable);
    Payment findByOrderId(Long orderId);
    Payment findByOutTradeNo(String outTradeNo);
    Payment findByTransactionId(String transactionId);
} 